﻿namespace Codeblack.TfsScrumboard.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Codeblack.TfsScrumboard.Resources;

    public class BacklogsViewModel
    {
        public BacklogsViewModel(BacklogViewModel[] projectBacklogs,
                                 BacklogViewModel[] historyBacklogs,
                                 BacklogViewModel[] currentBacklogs,
                                 BacklogViewModel[] futureBacklogs)
        {
            this.Project = new BacklogGroupViewModel()
            {
                Name = ScrumboardResources.BacklogGroup_Project,
                Backlogs = projectBacklogs
            };
            this.History = new BacklogGroupViewModel()
            {
                Name = ScrumboardResources.BacklogGroup_History,
                Backlogs = historyBacklogs
            };
            this.Current = new BacklogGroupViewModel()
            {
                Name = ScrumboardResources.BacklogGroup_Current,
                Backlogs = currentBacklogs
            };
            this.Future = new BacklogGroupViewModel()
            {
                Name = ScrumboardResources.BacklogGroup_Future,
                Backlogs = futureBacklogs
            };
        }

        public BacklogGroupViewModel Project { get; set; }
        public BacklogGroupViewModel History { get; set; }
        public BacklogGroupViewModel Current { get; set; }
        public BacklogGroupViewModel Future { get; set; }
    }
}
